package com.qiudaozhang.jblog.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.qiudaozhang.jblog.user.mapper.UserMapper;
import com.qiudaozhang.jblog.model.User;
import com.qiudaozhang.jblog.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author 邱道长
 * 时间： 2018/12/23 12:12
 */
//@Service(version = DubboUtil.VERSION_1, group = DubboUtil.GROUP_NAME)
//@Component

@Service(version = "${service.version}",group = "${dubbo.group}")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryByUsername(User user) {
        return userMapper.queryByUsername(user.getUsername());
    }
}
